import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { ChartComponent } from './chart.component';

import { AreaComponent } from './area/area.component';
import { LineComponent } from './line/line.component';
import { ChartmainComponent } from './chartmain/chartmain.component';


const chartRoutes: Routes = [
    {
        path: 'chart',
        component: ChartComponent,
        children: [
            { path: '', component: ChartmainComponent },
            { path: 'area', component: AreaComponent },
            { path: 'line', component: LineComponent }
        ]
    }
];

@NgModule({
  imports: [RouterModule.forChild(chartRoutes)],
  exports: [RouterModule],
  providers: []
})
export class ChartRoutingModule { }
